package com.cl.ks.controller;


import com.cl.ks.entity.ClueAutoResult;
import com.cl.ks.service.ClueAutoResultService;
import com.cl.mvc.controller.BaseController;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("ClueAutoResult")
public class ClueAutoResultController extends BaseController<ClueAutoResult> {
    private final ClueAutoResultService clueAutoResultService;

    public ClueAutoResultController(ClueAutoResultService service, ClueAutoResultService clueAutoResultService) {
        super(service);
        this.clueAutoResultService = clueAutoResultService;
    }


    @GetMapping("getClueSourceData")
    public ResponseEntity<String> getClueSourceData(@RequestParam(name = "filterId") Integer filterId, HttpServletResponse response) {
        return clueAutoResultService.getClueSourceData(filterId,response);
    }
}
